
"""
序列化器使用
"""
from django.urls import path, include

from .views2 import getNews, getCategorys, insertNews, updateNews, delNews,getNew

app_name = 'news'
urlpatterns = [
    path('getnews/',getNews,name='getnews'),
    path('getnew/<int:pk>', getNew, name='getnew'),
    path('getcategorys/',getCategorys,name='getcategorys'),
    path('insertnews/',insertNews,name='insertnews'),
    path('updatenews/<int:pk>',updateNews,name='updatenews'),
    path('delnews/<int:pk>',delNews,name='delnews')
]
